#!/usr/bin/env python
 
# -*- coding:utf-8 -*-
 
import socket
 
while True:
 
    line=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
 
    line.connect(('127.0.0.1',51520))
 
    msg = input('please input commd:')
 
    line.send(str(msg).encode('utf-8'))
    conn,addr=line.accept()
    msg=conn.recv(1024)
    print('get commd:',msg)
 
    line.close()
